package com.zidian.leader.entity;

import java.io.Serializable;
import java.util.List;

/**
 * 登录返回值实体类
 * Created by GongCheng on 2016/11/2.
 */

public class LoginResult implements Serializable{

    /**
     * message : 成功
     * token : b9a38319b016209610cf5636bb048aee
     * data : {"collegeList":[{"college":{"collegeName":"机械工程学院","majorList":[{"majorName":"工业设计"},{"majorName":"测控技术与仪器"},{"majorName":"过程装备与控制工程"},{"majorName":"材料成型及控制工程"},{"majorName":"机械设计制造及其自动化"},{"majorName":"机械设计及其自动化"},{"majorName":"车辆工程"},{"majorName":"车辆工程专业"},{"majorName":"过控装备与控制工程"}]}}]}
     * leadName : 羽凌夜1
     * leadId : 1109
     * code : 200
     * roleId : 5
     */

    private String message;
    private String token;
    private DataBean data;
    private String leadName;
    private String leadId;
    private int code;
    private int roleId;

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public String getLeadName() {
        return leadName;
    }

    public void setLeadName(String leadName) {
        this.leadName = leadName;
    }

    public String getLeadId() {
        return leadId;
    }

    public void setLeadId(String leadId) {
        this.leadId = leadId;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public int getRoleId() {
        return roleId;
    }

    public void setRoleId(int roleId) {
        this.roleId = roleId;
    }

    public static class DataBean {
        /**
         * college : {"collegeName":"机械工程学院","majorList":[{"majorName":"工业设计"},{"majorName":"测控技术与仪器"},{"majorName":"过程装备与控制工程"},{"majorName":"材料成型及控制工程"},{"majorName":"机械设计制造及其自动化"},{"majorName":"机械设计及其自动化"},{"majorName":"车辆工程"},{"majorName":"车辆工程专业"},{"majorName":"过控装备与控制工程"}]}
         */

        private List<CollegeListBean> collegeList;

        public List<CollegeListBean> getCollegeList() {
            return collegeList;
        }

        public void setCollegeList(List<CollegeListBean> collegeList) {
            this.collegeList = collegeList;
        }

        @Override
        public String toString() {
            return "DataBean{" +
                    "collegeList=" + collegeList +
                    '}';
        }

        public static class CollegeListBean {
            /**
             * collegeName : 机械工程学院
             * majorList : [{"majorName":"工业设计"},{"majorName":"测控技术与仪器"},{"majorName":"过程装备与控制工程"},{"majorName":"材料成型及控制工程"},{"majorName":"机械设计制造及其自动化"},{"majorName":"机械设计及其自动化"},{"majorName":"车辆工程"},{"majorName":"车辆工程专业"},{"majorName":"过控装备与控制工程"}]
             */

            private CollegeBean college;

            public CollegeBean getCollege() {
                return college;
            }

            public void setCollege(CollegeBean college) {
                this.college = college;
            }

            public static class CollegeBean {
                private String collegeName;
                /**
                 * majorName : 工业设计
                 */

                private List<MajorListBean> majorList;

                public String getCollegeName() {
                    return collegeName;
                }

                public void setCollegeName(String collegeName) {
                    this.collegeName = collegeName;
                }

                public List<MajorListBean> getMajorList() {
                    return majorList;
                }

                public void setMajorList(List<MajorListBean> majorList) {
                    this.majorList = majorList;
                }

                @Override
                public String toString() {
                    return "CollegeBean{" +
                            "collegeName='" + collegeName + '\'' +
                            ", majorList=" + majorList +
                            '}';
                }

                public static class MajorListBean {
                    private String majorName;

                    public String getMajorName() {
                        return majorName;
                    }

                    public void setMajorName(String majorName) {
                        this.majorName = majorName;
                    }

                    @Override
                    public String toString() {
                        return "MajorListBean{" +
                                "majorName='" + majorName + '\'' +
                                '}';
                    }
                }

            }
        }
    }

    @Override
    public String toString() {
        return "LoginResult{" +
                "message='" + message + '\'' +
                ", token='" + token + '\'' +
                ", data=" + data +
                ", leadName='" + leadName + '\'' +
                ", leadId='" + leadId + '\'' +
                ", code=" + code +
                ", roleId=" + roleId +
                '}';
    }
}
